<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script type="text/javascript" src="./data.js"></script>
</head>
<body>

<script>
/*var obj1 = {name: "李四"}
var obj2 = {name: "李四"}
var obj3 = obj2;
obj2.name = "张三";
console.log(obj3.name);*/
function foo(num, obj){
    num = 20;
    obj.name = "abc"
}

var num = 10;
var obj = {
    name: "aaa"
}
foo(num, obj)
console.log(num);
console.log(obj.name);
</script>
</body>
</html>
<!--
对象比较相等:  == ===

本质是比较的两个对象的地址是否相等.  比较是否是同一个对象


js函数的参数的传递: 永远是值传递

http://www.pythontutor.com/live.html#mode=edit
-->